﻿using System;
using System.Web.UI;

namespace ReadyApps.Wiki.Views
{
    abstract class ViewBase : IWikiView
    {
        #region Variables and Constants

        protected WikiControlSettings controlSettings;

        #endregion

        #region Constructor

        public ViewBase(WikiControlSettings wikiControlSettings)
        {
            if (wikiControlSettings == null)
            {
                throw new ArgumentNullException("wikiControlSettings");
            }
            controlSettings = wikiControlSettings;
        }

        #endregion

        #region Public Methods

        public abstract void BuildControlTree(ControlCollection controls, bool raiseEvents);

        #endregion
    }
}
